package com.flyxteam.learner.springboot.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

// ## 加载team开头的属性
@ConfigurationProperties(prefix = "team")
@Component
public class TeamConfig {

    private String  name;
    private Integer age;
    private Boolean actived;
    
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public Integer getAge() {
        return age;
    }
    public void setAge(Integer age) {
        this.age = age;
    }
    public Boolean getActived() {
        return actived;
    }
    public void setActived(Boolean actived) {
        this.actived = actived;
    }

}
